"use strict";
function findChart(str) {
    var res = str.split("");
    var obj = {}, len = res.length;
    for (var index = 0; index < len; index++) {
        // obj = {}  obj["a"]
        if (obj[str[index]]) {
            obj[str[index]]++;
        }
        else {
            obj[str[index]] = 1;
        }
    }
    for (var key in obj) {
        if (obj[key] == 1) {
            console.log(key);
        }
    }
    console.log(obj);
}
findChart("abcdadfyr");
